//
//  KFDFinancialEventCellBottomBar.m
//  KFD
//
//  Created by Lucky Luke on 10/10/15.
//  Copyright © 2015 kfd. All rights reserved.
//

#import "KFDFinancialEventCellBottomBar.h"
#import "ui_config.h"

@interface KFDFinancialEventCellBottomBar ()

@property (weak, nonatomic) IBOutlet UILabel *timeLabel;
@property (weak, nonatomic) IBOutlet UILabel *influenceLabel;
@property (weak, nonatomic) IBOutlet UILabel *importanceLabel;

@end

@implementation KFDFinancialEventCellBottomBar

-(void)setEvent:(KFDFinancialEvent *)event
{
    _event=event;
    self.timeLabel.text=event.time;
    self.influenceLabel.text=[NSString stringWithFormat:@"影响 : %@",event.country];
    self.importanceLabel.text=event.important;
    if ([event.important isEqualToString:@"低"]) {
        self.importanceLabel.textColor=KFD_GREEN;
    }else if ([event.important isEqualToString:@"高"]){
        self.importanceLabel.textColor=KFD_RED;
    }
}

@end
